package com.sc.design.command;

/**
 * @author sc
 * Created on  2017/12/6
 */
public class Invoker {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }
    public void action(){
        this.command.execute();
    }
    public void say(){
        System.out.println("hello");
    }
}
